﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepForm.aspx.cs"
Inherits="schedulelist.DepForm" MasterPageFile="~/Site.Master"%>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">
    <table align="center">
<tr align="center">
<td>
<asp:Label ID="Label4" runat="server" Text="Departments"
Font-Size="20pt" ForeColor="#000000" Font-Bold="True"/>
</td>
</tr>
<tr>
<td>
<asp:GridView ID="GridView1" runat="server" ForeColor="#000000" BorderWidth="2px" 
AutoGenerateColumns="false" Visible="true" BorderColor="#CCCCCC"
ShowFooter="false" ShowHeader="true"
AllowPaging="true" PageSize="20"
onpageindexchanging="GridView1_PageIndexChanging"
onrowdeleting="GridView1_RowDeleting" Font-Size="12pt"
onrowediting="GridView1_RowEditing"
HorizontalAlign="Center" RowStyle-HorizontalAlign="Center">
<Columns>
<asp:TemplateField HeaderText="Id" Visible="false"
ItemStyle-Width="100" >
<ItemTemplate>
<asp:Label id="myLabel1" runat="server"
Text='<%# Bind("Id")%>' />
</ItemTemplate>

<ItemStyle Width="100px"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Name" ControlStyle-Width="100" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Underline="true"  HeaderStyle-Font-Bold="false" ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel2" runat="server" Font-Names="Segoe Print"
Text='<%# Bind("name")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="myTextBox2" runat="server" Width="100"
Text='<%# Bind("name") %>'/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="myFooterTextBox2" runat="server"
Width="100" Text='<%# Bind("name") %>' />
</FooterTemplate>

<HeaderStyle BackColor="#CCCCCC" BorderColor="Silver"></HeaderStyle>

<ItemStyle BackColor="#CCCCCC" BorderColor="Silver" Width="100px"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Status" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Underline="true"  HeaderStyle-Font-Bold="false" ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0" ControlStyle-Width="100" >
<ItemTemplate>
<asp:Label id="myLabel3" runat="server" Font-Names="Segoe Print"
Text='<%# Bind("status")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="myTextBox3" runat="server" Width="100"
Text='<%# Bind("name") %>'/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="myFooterTextBox3" runat="server"
Width="100" Text='<%# Bind("name") %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Actions" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Underline="true"  HeaderStyle-Font-Bold="false" ItemStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<table><tr><td>
<asp:Button ID="ibDelete" runat="server" CommandName="Delete" 
    Text="Del"  Height="20" Width="30"/></td>
    <td><asp:Button ID="Button7" runat="server"   CommandName="Edit" Visible="true" 
    Text="Edit"  Height="20" Width="40"/></td>
    <td><asp:Button ID="Button2" runat="server" OnClick="Updating" Visible="false" 
    Text="Edit now"  Height="20" Width="75"/></td>
    <td><asp:Button ID="Button3" runat="server"  Visible = "false" OnClick="Undo"
    Text="Cancel"  Height="20" Width="65"/></td>
    <td><asp:Button ID="Button6" runat="server" OnClick="AED" Visible="false" 
    Text="Advanced item edit"  Height="20" Width="135"/></td>
    </tr>
    </table>
</ItemTemplate>
<FooterTemplate>
<table><tr><td>
<asp:Button ID="Button5" runat="server"  OnClick="QuickAd"  
    Text="Add"  Height="20" Width="50"/></td>
    <td><asp:Button ID="Button8" runat="server"  OnClick="Undo"
    Text="Cancel"  Height="20" Width="65"/></td>
    </tr>
    </table>
</FooterTemplate>

<FooterStyle HorizontalAlign="Center"></FooterStyle>

<HeaderStyle BackColor="#CCCCCC" BorderColor="Silver"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" BackColor="#CCCCCC" BorderColor="Silver"></ItemStyle>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign ="Center" />

<RowStyle HorizontalAlign="Center" BorderColor="Silver"></RowStyle>
</asp:GridView>
</td>
</tr>
<tr>
<td>
    <asp:Button ID="Button1" runat="server"  OnClick="ibInsert_Click"  
    Text="Add departament"   Height="20" Width="140"/>
    <asp:Button ID="Button4" runat="server"  Visible = "true" OnClick="QAD"
    Text="Quick adding"   Height="20" Width="100"/>
</td>
<td>
    &nbsp;</td>
</tr>
</table>
</asp:Content>

